#7(a)
class Picture:
    def __init__(self, DescriptionP, WidthsizeP, HeightsizeP, FrameColourP):
        self.Description = DescriptionP  # string
        self.Width = int(WidthsizeP)  # integer
        self.Height = int(HeightsizeP)  # integer
        self.FrameColour = FrameColourP  # string
#7(b)
    def GetDescription(self):
        return self.Description

    def Getwidth(self):
        return self.Width

    def GetHeight(self):
        return self.Height

    def GetColour(self):
        return self.FrameColour

# 7(c)
    def SetDescription(self, DescriptionP):
        self.__Description = DescriptionP



#7(e)
def ReadDaxta(PictureArray):
    Filename = "Pictures.txt"
    Counter = 0
    try:
        File = open(Filename,"r")
    except IOError:
            print("Could not Find File")
    else:
        Description = (File.readline()).strip().lower()
        while (Description != ""):
            Width = int((File.readline()).strip())
            Height = int((File.readline()).strip())
            Frame = ((File.readline()).strip()).lower()
            PictureArray[Counter] = Picture(Description, Width, Height, Frame)
            Description = ((File.readline()).strip()).lower()
            Counter = Counter + 1
        File.close()
    return Counter, PictureArray
#7(f)
if __name__ == '__main__':
    # 7(d)
    PictureArray = []
    for i in range(100):
        PictureArray.append(Picture("", 0, 0, ""))
    NumberPicturesInArray, PictureArray = ReadData(PictureArray)